package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:17
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductTeam implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long productDefineId;

    /**
     * Attribute productDefineId Be Seted Falg
     */
    private boolean productDefineIdSetted = false;

    /**
    * Attribute productDefineId is Null Falg
    */
    private boolean productDefineIdNull = false;
    private long stafferId;

    /**
     * Attribute stafferId Be Seted Falg
     */
    private boolean stafferIdSetted = false;

    /**
    * Attribute stafferId is Null Falg
    */
    private boolean stafferIdNull = false;
    private String stafferRole;

    /**
     * Attribute stafferRole Be Seted Falg
     */
    private boolean stafferRoleSetted = false;

    /**
    * Attribute stafferRole is Null Falg
    */
    private boolean stafferRoleNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String stafferName;

    /**
     * Attribute stafferName Be Seted Falg
     */
    private boolean stafferNameSetted = false;

    /**
    * Attribute stafferName is Null Falg
    */
    private boolean stafferNameNull = false;
    private String stafferPhoto;

    /**
     * Attribute stafferPhoto Be Seted Falg
     */
    private boolean stafferPhotoSetted = false;

    /**
    * Attribute stafferPhoto is Null Falg
    */
    private boolean stafferPhotoNull = false;
    private String productName;

    /**
     * Attribute productName Be Seted Falg
     */
    private boolean productNameSetted = false;

    /**
    * Attribute productName is Null Falg
    */
    private boolean productNameNull = false;

    public ProductTeam() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get productDefineId
         *
         * @return long
         */
    final public long getProductDefineId() {
        return productDefineId;
    }

    /**
     * Set productDefineId
     *
     * @param long
     */
    final public void setProductDefineId(long productDefineId) {
        this.productDefineId = productDefineId;

        this.productDefineIdSetted = true;

        this.setProductDefineIdNull(false);
    }

    /**
     * Get productDefineId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductDefineIdSetted() {
        return this.productDefineIdSetted;
    }

    /**
     * Set productDefineId Null
     *
     */
    final public void setProductDefineIdNull() {
        this.productDefineIdNull = true;
    }

    final public void setProductDefineIdNull(boolean aNullFlag) {
        this.productDefineIdNull = aNullFlag;
    }

    final public boolean isProductDefineIdNull() {
        return this.productDefineIdNull;
    }

    /**
         * Get stafferId
         *
         * @return long
         */
    final public long getStafferId() {
        return stafferId;
    }

    /**
     * Set stafferId
     *
     * @param long
     */
    final public void setStafferId(long stafferId) {
        this.stafferId = stafferId;

        this.stafferIdSetted = true;

        this.setStafferIdNull(false);
    }

    /**
     * Get stafferId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStafferIdSetted() {
        return this.stafferIdSetted;
    }

    /**
     * Set stafferId Null
     *
     */
    final public void setStafferIdNull() {
        this.stafferIdNull = true;
    }

    final public void setStafferIdNull(boolean aNullFlag) {
        this.stafferIdNull = aNullFlag;
    }

    final public boolean isStafferIdNull() {
        return this.stafferIdNull;
    }

    /**
         * Get stafferRole
         *
         * @return String
         */
    final public String getStafferRole() {
        if (isStafferRoleNull()) {
            return null;
        } else {
            return StringUtils.trim(stafferRole);
        }
    }

    /**
     * Set stafferRole
     *
     * @param String
     */
    final public void setStafferRole(String stafferRole) {
        this.stafferRole = StringUtils.trim(stafferRole);

        this.stafferRoleSetted = true;

        this.setStafferRoleNull(this.stafferRole == null);
    }

    /**
     * Get stafferRole Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStafferRoleSetted() {
        return this.stafferRoleSetted;
    }

    /**
     * Set stafferRole Null
     *
     */
    final public void setStafferRoleNull() {
        this.stafferRoleNull = true;
    }

    final public void setStafferRoleNull(boolean aNullFlag) {
        this.stafferRoleNull = aNullFlag;
    }

    final public boolean isStafferRoleNull() {
        return this.stafferRoleNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get stafferName
         *
         * @return String
         */
    final public String getStafferName() {
        if (isStafferNameNull()) {
            return null;
        } else {
            return StringUtils.trim(stafferName);
        }
    }

    /**
     * Set stafferName
     *
     * @param String
     */
    final public void setStafferName(String stafferName) {
        this.stafferName = StringUtils.trim(stafferName);

        this.stafferNameSetted = true;

        this.setStafferNameNull(this.stafferName == null);
    }

    /**
     * Get stafferName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStafferNameSetted() {
        return this.stafferNameSetted;
    }

    /**
     * Set stafferName Null
     *
     */
    final public void setStafferNameNull() {
        this.stafferNameNull = true;
    }

    final public void setStafferNameNull(boolean aNullFlag) {
        this.stafferNameNull = aNullFlag;
    }

    final public boolean isStafferNameNull() {
        return this.stafferNameNull;
    }

    /**
         * Get stafferPhoto
         *
         * @return String
         */
    final public String getStafferPhoto() {
        if (isStafferPhotoNull()) {
            return null;
        } else {
            return StringUtils.trim(stafferPhoto);
        }
    }

    /**
     * Set stafferPhoto
     *
     * @param String
     */
    final public void setStafferPhoto(String stafferPhoto) {
        this.stafferPhoto = StringUtils.trim(stafferPhoto);

        this.stafferPhotoSetted = true;

        this.setStafferPhotoNull(this.stafferPhoto == null);
    }

    /**
     * Get stafferPhoto Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStafferPhotoSetted() {
        return this.stafferPhotoSetted;
    }

    /**
     * Set stafferPhoto Null
     *
     */
    final public void setStafferPhotoNull() {
        this.stafferPhotoNull = true;
    }

    final public void setStafferPhotoNull(boolean aNullFlag) {
        this.stafferPhotoNull = aNullFlag;
    }

    final public boolean isStafferPhotoNull() {
        return this.stafferPhotoNull;
    }

    /**
         * Get productName
         *
         * @return String
         */
    final public String getProductName() {
        if (isProductNameNull()) {
            return null;
        } else {
            return StringUtils.trim(productName);
        }
    }

    /**
     * Set productName
     *
     * @param String
     */
    final public void setProductName(String productName) {
        this.productName = StringUtils.trim(productName);

        this.productNameSetted = true;

        this.setProductNameNull(this.productName == null);
    }

    /**
     * Get productName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductNameSetted() {
        return this.productNameSetted;
    }

    /**
     * Set productName Null
     *
     */
    final public void setProductNameNull() {
        this.productNameNull = true;
    }

    final public void setProductNameNull(boolean aNullFlag) {
        this.productNameNull = aNullFlag;
    }

    final public boolean isProductNameNull() {
        return this.productNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductTeam) == false) {
            return false;
        }

        ProductTeam other = (ProductTeam) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("productDefineId=");
        buffer.append(this.productDefineId);

        buffer.append("stafferId=");
        buffer.append(this.stafferId);

        buffer.append("stafferRole=");
        buffer.append(this.stafferRole);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("stafferName=");
        buffer.append(this.stafferName);

        buffer.append("productName=");
        buffer.append(this.productName);

        buffer.append("stafferPhoto=");
        buffer.append(this.stafferPhoto);

        buffer.append("]");

        return buffer.toString();
    }
}
